import Ye from './_YeConfig';
import Lian from './_LianConfig';
import Yang from './_YangConfig';

const env = "f";


const version = 1,
  vipcard_id = 'c169065bdd8ea73f',
  key = '4054d636c169065bdd8ea73f660cd866';

  
let api, baseUrl;


if (env == "f") {
  baseUrl = "https://wnworld.com/CheYiBao/";
  api = {
    baseUrl: baseUrl,
    login: "login",//登录
    index: "index",
    userStep: "userStep.php",
    signcontarct: "signcontarct.php",
    carlist: "carList.php",
    cardetail: "carDetail.php",
    dealerlist: "dealerList.php",
    dealerdetail: "dealerDetail.php",
    applylist: "applyList.php",
    uploading: baseUrl + "uploading.php",
    uploadCarInfo: "uploadCarInfo.php",
    uploadCarInfoForm: "uploadCarInfoForm.php",
    authorizePhone1: baseUrl + "authorizePhone1.php",
    authorizePhone: baseUrl + "authorizePhone.php",
    promoterList: "promoterList.php",
    getUserInfo: "getUserInfo.php"

  }
} else {
  if (env == "d") {
    baseUrl = "https://hd-api.dev.xiaoyu.com/hd/wxapp/";
  } else if (env == "t") {
    baseUrl = "https://api.test.haodian.cn/hd/wxapp/";
  } else if (env == "p") {
    baseUrl = "https://api.haodian.cn/hd/wxapp/";
  }
  api = {
    baseUrl: baseUrl,
    ...Ye,
    ...Lian,
    ...Yang
  }
}
export default {
  env,
  api,
  version,
  vipcard_id

}